// 分页居中

.el-pagination {
    text-align: center;
}

// 卡片阴影定制
.el-card {
    &.is-always-shadow {
        box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6),
            0 2px 4px 0 rgba(232, 237, 250, 0.5);
    }
    &.is-hover-shadow {
        &:hover {
            box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6),
                0 2px 4px 0 rgba(232, 237, 250, 0.5);
        }
    }
}

// 菜单
.el-menu--horizontal {
    border-bottom: none !important;
}

// tab
.el-tabs__item:focus.is-active.is-focus:not(:active) {
    box-shadow: none !important;
}

// 修复IE宽度不能撑满
.el-table__body,
.el-table__header {
    width: 100% !important;
}

// Chrome下表格头部错位修复
.el-table th.gutter,
.el-table colgroup.gutter {
    display: table-cell !important;
}

// 更窄的按钮
.el-button--mini {
    &.is-thin {
        + .is-thin {
            margin-left: 4px;
        }
        padding-left: 8px;
        padding-right: 8px;
    }
}

// 边距更小的分割线
.el-divider {
    &.el-divider--mini {
        margin: 12px 0;
    }
}

// 表格在占满 spacious 模式的 container 时特殊样式
.is-spacious {
    .el-table::before {
        background-color: #fff;
    }
    .el-table__fixed-right::before,
    .el-table__fixed-left::before,
    .el-table__fixed::before {
        height: 0px;
    }
    .el-table--border {
        // border: none;
        th {
            &:last-child {
                border-right: none;
            }
        }
        td {
            &:last-child {
                border-right: none;
            }
        }
        &::after {
            top: 0;
            right: 0;
            width: 0px;
            height: 100%;
        }
    }
}

// dialog 贴屏幕顶部
// .el-dialog {
//     &.el-dialog__no-top-border {
//         border-top-left-radius: 0px;
//         border-top-right-radius: 0px;
//     }
// }

// drawer 容器设置定位方式
// .el-drawer__body {
//     position: relative;
// }

.search-panel {
    .el-form.is-thin {
        .el-form-item.el-form-item--mini {
            margin-bottom: 0px;
            .el-form-item__label {
                padding-bottom: 0px;
            }
        }
    }
    .el-collapse-item__arrow {
        display: none;
    }
}

// 表格排序符号缩小
.el-table.el-table--mini {
    .caret-wrapper {
        height: 22px;
        top: -1px;
        .sort-caret.ascending {
            top: 0px;
        }
        .sort-caret.descending {
            bottom: 0px;
        }
    }
}

// el-select 多选模式下 tag 样式调整
.el-select.el-select--mini {
    .el-tag.el-tag--mini {
        i.el-tag__close.el-icon-close {
            right: -4px;
        }
    }
}

// 表格内的 el-image 垂直居中
.el-table {
    .el-image {
        vertical-align: middle;
    }
}

// 美化表格中图片预览
.el-table {
    .el-image-viewer__btn {
        color: #fff;
        opacity: 1;
    }
}

:focus {
    outline: none;
}
.iconnan1 {
    color: #3da5ff;
}
.iconnv {
    color: #ff4b94;
}
.iconrenwu1,
.iconxiaoshoutongji,
.icondingdan-yiwancheng {
    background: linear-gradient(to bottom right, #4760ff, #0dccff);
    background-clip: text;
    color: transparent;
    font-size: 40px;
}
.custom-tree-node {
    // .custom-tree-node-label
    .custom-tree-node-note {
        margin-left: 20px;
        color: #888888;
    }
}
.dialog-message {
    display: flex;
    > ul {
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        align-items: center;
        > li {
            border: 1px solid #4778e9;
            height: 40px;
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
        }
        > li + li {
            border-left: 0;
        }
        li:nth-child(odd) {
            background-color: #f2f8ff;
        }
        > li:first-child {
            border-radius: 10px 0 0 10px;
        }
        > li:last-child {
            border-radius: 0 10px 10px 0;
        }
    }
}
.customize-dialog {
    border-radius: 10px;
    .el-dialog__body {
        padding: 25px 35px 30px;
    }
    .el-form {
        .el-form-item__content {
            display: flex;
            align-items: center;
            min-height: 36px;
            .el-date-editor,
            .el-select {
                width: 100%;
            }
            .el-select + .el-select {
                margin-left: 16px;
            }
            .el-input {
                background: rgba(242, 248, 255, 1);
                border-radius: 10px;
                height: 36px;
                line-height: 36px;
                .el-input__inner {
                    background: rgba(242, 248, 255, 1);
                }
            }
            .el-textarea .el-textarea__inner {
                background: rgba(242, 248, 255, 1);
            }
        }
    }
    .el-button {
        width: 160px;
        height: 40px;
        border-radius: 50px;
    }
}
//头像
.el-avatar > img {
    display: block;
    height: auto;
    vertical-align: middle;
    width: 100%;
}
.el-dialog.el-dialog--center {
    border-radius: 15px;
}

.footer {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}
.footer button {
    width: 140px;
    border-radius: 50px;
}
